import axios from 'axios'

//let baseUrl='http://localhost:8026/';

//根据用户ID获取用户
export const getUserById = (params) => {
    // return axios.get('api/testBoot/getUser',params)
    return axios.request({
        url: '/api/testBoot/getUser/' + params,
        method: "get",
    })
};

//处理登录请求
export const login = (params) => {
    return axios.request({
        url: '/api/testBoot/login',
        method: "post",
        data: params
    })
};
export const getUserCoin = (query) => {
    return axios.request({
        url: '/api/testBoot/getUserCoin',
        method: "get",
        params: query
    })
}